package com.zyj.exam_app.exam.mapper;

import com.zyj.exam_app.exam.bean.UserAnswer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserAnswerMapper {

    public int batchInsert(@Param("userAnswerList") List<UserAnswer> userAnswerList, @Param("examPaperId") String examPaperId);

    /**
     *  查询答案正确的UserAnswer
     * @param examPaperId
     * @return
     */
    public List<UserAnswer> selectRightUserAnswer(@Param("examPaperId") String examPaperId);
}
